var express = require('express');
var router = express.Router();
var i18n = require('i18n');
var nodeEnv = process.env.NODE_ENV;
var conf = require('../conf/conf.json')[nodeEnv];

//GET home page.
router.get('/', function (req, res, next) {
  res.render('index', {
    title: "YoMob",
    styles: ["/styles/index.css"],
    scripts: [
      "/scripts/MSClass.js",
      "/scripts/superslide.2.1.js",
      "/scripts/countUp.min.js"
    ],
    nav: conf['nav']
  });
});
router.get('/features', function (req, res, next) {
  res.render('features', {
    title: 'YoMob',
    styles: [
      "/styles/index.css",
      "/styles/about.css"
    ],
    scripts: ["/scripts/MSClass.js"],
    nav: conf['nav']
  });
});
router.get('/about', function (req, res, next) {
  res.render('about', {
    title: 'YoMob',
    styles: [
      "/styles/index.css",
      "/styles/about.css"
    ],
    scripts: ["/scripts/MSClass.js"],
    nav: conf['nav']
  });
});
router.get('/success', function (req, res, next) {
  res.render('success', {
    title: 'YoMob',
    styles: [
      "/styles/index.css",
      "/styles/success.css"
    ],
    scripts: [
      "/scripts/success.js"
    ],
    nav: conf['nav']
  });
});
module.exports = router;